home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 96 / PC Zone #096.7z / Dppcz1200.mdf / Demos / Gunlok / data1.cab / Program_Executable_Files / scripts / rail_turret.gsh < prev    next >
Text File  |  2000-09-09  |  1KB  |  50 lines

  1. // defines Turret
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. //(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
  7. #ifndef INCLUDED_RAIL_TURRET_GSH
  8. #define INCLUDED_RAIL_TURRET_GSH
  9.  
  10. #include "lasers.gsh"
  11. #include "defaults.gsh"
  12.  
  13. ////////////////////////////////////////////////////////////////////////////////////
  14.  
  15. hierarchy Hcy_Rail_Turret
  16. {
  17.     file "units\rail turret.RIF"
  18.     name "Rail Turret"
  19.     hotspot "Dum Flash"
  20. }
  21.  
  22. character Chr_Rail_Turret : Chr_DefaultBaddie
  23. {
  24.     turning speed   0.25
  25.     walking speed   0    // doesn't move
  26.     weapon          enemy laser weak
  27.     strength        6    // one shot and it's destroyed
  28.     aim             0    // spot on!
  29.     sight angle    90    // in degrees
  30.     sight range     15    // in metres
  31.     hearing range    22    // in metres
  32.     aggression    1    // from 0 to 1
  33.     gun yaw angle    45    // in degrees
  34.     elevation angle 45    // in degrees
  35.     can turn        no    // can only use gun yaw
  36. }
  37.  
  38. role Rol_Rail_Turret : Rol_DefaultRobot
  39. {
  40.     shape            Hcy_Rail_Turret
  41.     character        Chr_Rail_Turret
  42.     identifier        "Rail_Turret"
  43.     ai                bot
  44. }
  45.  
  46. ////////////////////////////////////////////////////////////////////////////////////
  47.  
  48. // end wrapper - for preventing multiple or recursive inclusions
  49. #endif // !INCLUDED_RAIL_TURRET_GSH
  50.